keyutils: Make reproducible
authorRosen Penev <[email protected]>
Sat, 9 Feb 2019 04:45:00 +0000 (20:45 -0800)
committerRosen Penev <[email protected]>
Sat, 9 Feb 2019 04:50:24 +0000 (20:50 -0800)
Based on debian patch.

Signed-off-by: Rosen Penev <[email protected]>
libs/keyutils/Makefile
libs/keyutils/patches/010-reproducible-build.patch [new file with mode: 0644]

index 648b288acb7deafe0341a8254bb7c2525fbfecfe..430473cd4630bf300cd68d696c5cd5bc7a9da3c6 100644 (file)
@@ -1,4 +1,4 @@
-# 
+#
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=keyutils
 PKG_VERSION:=1.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://people.redhat.com/dhowells/keyutils/
diff --git a/libs/keyutils/patches/010-reproducible-build.patch b/libs/keyutils/patches/010-reproducible-build.patch
new file mode 100644 (file)
index 0000000..3cf9b54
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver
+ ###############################################################################
+ #RPATH = -Wl,-rpath,$(LIBDIR)
+-VCPPFLAGS     := -DPKGBUILD="\"$(shell date -u +%F)\""
++VCPPFLAGS     := -DPKGBUILD="\"for OpenWrt"\"
+ VCPPFLAGS     += -DPKGVERSION="\"keyutils-$(VERSION)\""
+ VCPPFLAGS     += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""